package org.chen.template;

import lombok.Data;
import java.util.ArrayList;
import java.util.List;

@Data
public class MovieDetail {
    private Boolean status = true;
    private String msg = "";
    private MovieInfo movie;
    private List<Episode> episodes;

    @Data
    public static class MovieInfo {
        private Tmdb tmdb;
        private Imdb imdb;
        private TimeInfo created;
        private TimeInfo modified;
        private String _id;
        private String name;
        private String slug;
        private String origin_name;
        private String content;
        private String type = "series";
        private String status = "trailer";
        private String thumb_url;
        private String poster_url;
        private Boolean is_copyright = false;
        private Boolean sub_docquyen = false;
        private Boolean chieurap = false;
        private String trailer_url = "";
        private String time = "12 phút/tập";
        private String episode_current = "Trailer";
        private String episode_total = "23";
        private String quality = "HD";
        private String lang = "Vietsub";
        private String notify = "";
        private String showtimes = "";
        private Integer year = 2024;
        private Integer view = 0;
        private List<String> actor = new ArrayList<>();
        private List<String> director = new ArrayList<>();
        private List<Category> category = new ArrayList<>();
        private List<Country> country = new ArrayList<>();
    }

    @Data
    public static class Tmdb {
        private String type = "tv";
        private String id = "274047";
        private Integer season = 1;
        private Integer vote_average = 6;
        private Integer vote_count = 1;
    }

    @Data
    public static class Imdb {
        private String id = "";
    }

    @Data
    public static class TimeInfo {
        private String time;
    }

    @Data
    public static class Category {
        private String id;
        private String name;
        private String slug;
    }

    @Data
    public static class Country {
        private String id;
        private String name;
        private String slug;
    }

    @Data
    public static class Episode {
        private String server_name = "Vietsub #1";
        private List<ServerData> server_data = new ArrayList<>();
    }

    @Data
    public static class ServerData {
        private String name = "";
        private String slug = "";
        private String filename = "";
        private String link_embed = "";
        private String link_m3u8 = "";
    }
}